﻿package com.toncen.samepms.net.domain;

import com.sky.dataimport.*;
import com.sky.dataimport.datatype.*;
import com.toncen.samepms.common.AbstractDomain;
import com.toncen.samepms.common.IPropertyUniqueble;
import com.toncen.samepms.common.Unique;
 
/**
 * 描述：友情链接表NET_FRIENDLY_LINK的domain文件
 * @time 2013-5-10
 * @author xyp 
 */
@DynamicRowDataRow(title = "动态行友情链接", sheetIndex = 1, startRowIndex = 2, startCellIndex = 1, inserted = false)
@DynamicCellDataRow(title = "动态列友情链接", sheetIndex = 1, startRowIndex = 2, startCellIndex = 2, inserted = false)
@StaticDataRow(title = "静态行列友情链接", sheetIndex = 1)
public class FriendlyLink extends AbstractDomain  implements  IPropertyUniqueble{
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1366853043188L;
	
	/**
	 * 名称
	 */ 
	@StaticDataCell(rowIndex = 1, cellIndex = 1, title = "名称")
	@DynamicRowDataCell(cellIndex = 1,  title = "名称", require = false)
	@DynamicCellDataCell(rowIndex = 1,  title = "名称", require = false)
	@StringDataType(max = 200 )
	@Unique(column = "NAME", title = "名称")
	private  String name; 	 
    
	/**
	 * 链接地址
	 */ 
	@StaticDataCell(rowIndex = 2, cellIndex = 2, title = "链接地址")
	@DynamicRowDataCell(cellIndex = 2,  title = "链接地址", require = false)
	@DynamicCellDataCell(rowIndex = 2,  title = "链接地址", require = false)
	@StringDataType(max = 200 )
	private  String linkUrl; 	 
    
	/**
	 * 顺序
	 */ 
	@StaticDataCell(rowIndex = 3, cellIndex = 3, title = "顺序")
	@DynamicRowDataCell(cellIndex = 3,  title = "顺序", require = false)
	@DynamicCellDataCell(rowIndex = 3,  title = "顺序", require = false)
	@IntegerDataType(msg = "必须为整数类型")
	private  int sequence=10; 	 
    

	public FriendlyLink() {
		super();
	}

	/**
	 * @return the  name
	 */
	public  String getName() {
		return  name;
	}

	/**
	 * @param  name
	 *            the  name to set
	 */
	public void setName( String  name) {
		this. name =  name;
	}
	
	/**
	 * @return the  linkUrl
	 */
	public  String getLinkUrl() {
		return  linkUrl;
	}

	/**
	 * @param  linkUrl
	 *            the  linkUrl to set
	 */
	public void setLinkUrl( String  linkUrl) {
		this. linkUrl =  linkUrl;
	}
	
	/**
	 * @return the  sequence
	 */
	public  int getSequence() {
		return  sequence;
	}

	/**
	 * @param  sequence
	 *            the  sequence to set
	 */
	public void setSequence( int  sequence) {
		this. sequence =  sequence;
	}

	public String getPrimaryName() {
		// TODO Auto-generated method stub
		return "ID";
	}

	public String getTableName() {
		// TODO Auto-generated method stub
		return "NET_FRIENDLY_LINK";
	}
	
}
